package com.iflytek.jcy.supervise.job.common.constants;

/**
 * @author <a href=mailto:ktyi@iflytek.com>伊开堂</a>
 * @date 2021/7/2
 */
public enum RedisKeys {
    LOCK_COMMON("lock_common", "全局锁")
    ;

    private String keyPattern;
    private String desc;

    RedisKeys(String keyPattern, String desc) {
        this.keyPattern = keyPattern;
        this.desc = desc;
    }


    public String toString() {
        return this.keyPattern;
    }

    public String toString(Object... args) {
        return String.format(this.keyPattern, args);
    }
}
